import req from '@/utils/request.js';

export  default {
    /**
     * 获取当前所有定时器任务
     */
    listAll(){
        return req.get('/quartz/listAll')
    },
    pause(jobKey){
        return req.put(`/quartz/pause/${jobKey}`)
    },
    resume(jobKey){
        return req.post(`/quartz/resumeTask/${jobKey}`)
    }

}